#define _CRT_SECURE_NO_WARNINGS

#include "Stack.h"



int main()
{
	srand((unsigned int)time(NULL));
	int i = 0;
	Stack stack;
	StackInit(&stack);
	printf("\033[34mIs empty:%d\033[0m\n", (int)StackIsEmpty(&stack));
	for (i = 0; i < 25; i++)
	{
		StackPush(&stack, rand() % 100);
	}

	printf("\033[33m");
	StackPrint(&stack);
	printf("\033[0m");

	for (i = 0; i < 10; i++)
	{
		printf("\033[35mnums of elements:%d", StackSize(&stack));
		printf("\t\tTop element:%d\033[0m\n", StackTop(&stack));
		StackPop(&stack);
	}

	printf("\033[33m");
	StackPrint(&stack);
	printf("\033[0m");

	printf("\033[34mIs empty:%d\033[0m\n", (int)StackIsEmpty(&stack));
	printf("\033[32mTop element:%d\033[0m\n", StackTop(&stack));
	StackDestroy(&stack);
	printf("\033[34mIs empty:%d\033[31m\n", (int)StackIsEmpty(&stack));


	return 0;
}